//    Copyright (C) Kherty.  All rights reserved.
using System;
using System.Windows.Media;
using OpenLS.Core.Serialization;

namespace OpenLS.Drawing
{
    public class HueTransform : ColorTransform
    {
        private int angle; //\\modify to double

        public int Angle
        {
            get { return angle; }
            set { angle = value; }
        }

        public override Color Apply(Color c)
        {
            throw new NotImplementedException();
        }

        internal override void ReadXmlCore(ReadContext context)
        {
            using (var c = context.Read("hue"))
            {
                Angle = c.GetInteger("val");
            }
        }

        internal override void WriteXmlCore(WriteContext context)
        {
            using (WriteContext c = context.Write("hue"))
            {
                c.SetInteger("val", Angle);
            }
        }
    }
}